package com.iweb.manager.service;

import com.iweb.manager.dao.UserManageMapper;
import com.iweb.manager.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserManageServiceImpl implements UserManageService{

    @Autowired
    UserManageMapper userManageMapper;
    @Override
    public List<User> selectAllUsers() {
        return userManageMapper.selectAllUsers();
    }

    @Override
    public User selectOneUser(int user_id) {
        return userManageMapper.selectOneUser(user_id);
    }

    @Override
    public int addOneUser(User user) {
        return userManageMapper.addOneUser(user);
    }

    @Override
    public int deleteOneUser(int user_id) {
        return userManageMapper.deleteOneUser(user_id);
    }

    @Override
    public int updateOneUser(User user) {
        return userManageMapper.updateOneUser(user);
    }
}
